﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"  Theme="SkinFile"
    CodeFile="EquipRemind.aspx.cs" Inherits="EquipRemind" Title="设备维修到期提醒" Culture="auto"
    UICulture="auto" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder" runat="Server">
    <h1 id="pagetitle" class="pagetitle">
        设备维修到期提醒
        <asp:UpdateProgress ID="UpdateProgress1" runat="server">
            <ProgressTemplate>
                <div class="anistyle" id="ani">
                    正在加载数据，请耐心等待...
                </div>
            </ProgressTemplate>
        </asp:UpdateProgress>
    </h1>
    <asp:UpdatePanel ID="UpdatePanel" runat="server">
        <ContentTemplate>
            <div class="condition">
                <div class="conditioninput">
                    设备编号：<asp:TextBox ID="TxtEquipID" runat="server" Width="120px"></asp:TextBox>日期范围：<asp:TextBox
                        ID="txtStart" runat="server" Width="100px"></asp:TextBox><ajaxToolkit:CalendarExtender
                            ID="EditBirthDayExtender" runat="server" Format="yyyy-MM-dd" TargetControlID="txtStart">
                        </ajaxToolkit:CalendarExtender>
                    -<asp:TextBox ID="txtEnd" runat="server" Width="100px"></asp:TextBox><ajaxToolkit:CalendarExtender
                        ID="CalendarExtender1" runat="server" Format="yyyy-MM-dd" TargetControlID="txtEnd">
                    </ajaxToolkit:CalendarExtender>
                </div>
                <div class="conditionbutton">
                    <asp:Button ID="BtnQuery" runat="server" Text="查询信息" Width="80px" OnClick="BtnQuery_Click" />
                </div>
            </div>
            <div runat="server" id="divResult" class="divResult">
                <asp:Label ID="OperationResult" CssClass="result" runat="server" Text=""></asp:Label>
            </div>
            <div class="InfoArea">
                <asp:Panel ID="SummaryPanel" runat="server" Width="100%">
                    <asp:GridView ID="GridView" runat="server" AutoGenerateColumns="False" Width="100%"
                        DataKeyNames="Equip_ID" OnRowDataBound="GridView_RowDataBound" SkinID="gridviewSkin">
                        <%--<RowStyle BackColor="#EFF3FB" Height="24px" />
                        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" Height="24px" />
                        <EditRowStyle BackColor="#2461BF" />
                        <AlternatingRowStyle BackColor="White" />--%>
                        <Columns>
                            <asp:BoundField DataField="Equip_ID" HeaderText="设备编号">
                                <HeaderStyle Width="50px" />
                            </asp:BoundField>
                            <asp:BoundField DataField="Equip_Name" HeaderText="设备名称">
                                <HeaderStyle Width="100px" />
                            </asp:BoundField>
                            <asp:BoundField DataField="Ex_Fact_Date" HeaderText="出厂/生产日期" DataFormatString="{0:yyyy-MM-dd }">
                                <HeaderStyle Width="80px" />
                            </asp:BoundField>
                            <asp:BoundField DataField="Buy_Date" HeaderText="购买日期" DataFormatString="{0:yyyy-MM-dd }">
                                <HeaderStyle Width="60px" />
                            </asp:BoundField>
                            <asp:BoundField DataField="Maintain_Day_Cyc" HtmlEncode="False" HeaderText="维护周期">
                                <HeaderStyle Width="40px" />
                            </asp:BoundField>
                            <asp:BoundField DataField="predate" HtmlEncode="False" HeaderText="最后维修日期" DataFormatString="{0:yyyy-MM-dd }">
                                <HeaderStyle Width="70px" />
                            </asp:BoundField>
                            <asp:BoundField DataField="shoulddate" DataFormatString="{0:yyyy-MM-dd }" HtmlEncode="False"
                                HeaderText="本次截至日期">
                                <HeaderStyle Width="70px" />
                                <ItemStyle Font-Bold="true" />
                            </asp:BoundField>
                            <asp:TemplateField HeaderText="操作">
                                <ItemTemplate>
                                    <asp:HyperLink ID="GvMt" runat="server" NavigateUrl='<%# "~/EquipMtReg.aspx?EquipID=" + Eval("Equip_ID") %>'>维修登记</asp:HyperLink>
                                </ItemTemplate>
                                <HeaderStyle HorizontalAlign="Center" Width="50px" />
                                <ItemStyle HorizontalAlign='Center' />
                            </asp:TemplateField>
                        </Columns>
                    </asp:GridView>
                    <webdiyer:AspNetPager ID="AspNetPager" runat="server" ShowCustomInfoSection="Left"
                        CustomInfoHTML="总记录数：%RecordCount%，总页数：%PageCount%，当前为第%CurrentPageIndex%页" CustomInfoTextAlign="left"
                        CustomInfoStyle="padding-top:8px;font-weight:bold;" HorizontalAlign="right" FirstPageText="首页"
                        LastPageText="尾页" NextPageText="下一页" OnPageChanged="AspNetPager_PageChanged"
                        PrevPageText="上一页" ShowPageIndexBox="Always" SubmitButtonText="Go" TextAfterPageIndexBox="页"
                        TextBeforePageIndexBox="转到" CssClass="anpager" CurrentPageButtonClass="cpb">
                    </webdiyer:AspNetPager>
                </asp:Panel>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
